<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> addCostAnalysis </title>
</head>
<body>
	<a href=" ${pageContext.request.contextPath }/costAnalysis/loadingCost.action" style="float:left;text-decoration:none;">显示所有</a>
	<div id = "selectCostAnalysis" style="width:1000px; text-align:center; ">
		<form action="${pageContext.request.contextPath }/costAnalysis/loadingCost.action" >
			<h2 style="float:left;">能源单价：</h2>
				
			<table width="100%" border=1>
			<tr>
				<td>ID</td>
				<td>编号</td>
				<td>能源类型</td>
				<td>能源单价</td>
				<td>操作</td>
			</tr>
			<c:forEach items="${costAnalysis}" var="cost" >
			<tr>
				<td>${cost.id}</td>
				<td>${cost.code}</td>
				<td>${cost.energyType}</td>
				<td>${cost.unitPrice}</td>
				<td><a href="${pageContext.request.contextPath }/costAnalysis/loadingCostOne.action?costAnalysisId=${cost.id}">修改</a>
				<a href="${pageContext.request.contextPath }/costAnalysis/deleteCost.action?costAnalysisId=${cost.id}">删除</a></td>
			</tr>
			</c:forEach>
			</table>
		</form>
	</div>
</body>
</html>